package com.yanqu.road.server.timer.xiuxian;

import com.yanqu.road.server.manager.activity.xiuxian.CrossXiuXianMgr;
import com.yanqu.road.server.manager.activity.xiuxian.activity.CrossXiuXianActivity;
import com.yanqu.road.utils.executor.GeneralTask;

/**
 * 同步心跳
 * 10s一次
 */
public class CrossXiuXianCheckPlacePingTask extends GeneralTask {
    @Override
    public void doRun() {
        for (CrossXiuXianActivity activity : CrossXiuXianMgr.getActivityMap().values()) {
            try {
                activity.crossXiuXianCheckPlacePing();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
